package com.soul.commons.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mdoya
 * @version 1.0
 * @description: Soul全局运行时异常  自定义全局异常
 */
@Data
@NoArgsConstructor
public class SoulGlobalException extends RuntimeException{
    private Object errData;

    public SoulGlobalException(String errMessage){
        super(errMessage);
    }

    public SoulGlobalException(Object data){
        super();
        this.errData = data;
    }
}
